#[test]
fn t_vec() {
    //let mut v: Vec<i8> = Vec::new();
    let mut v = vec![1, 2, 3];
    v.push(5);
    let a = v[2];
    println!("a is {}", a);

    //
    v.push(6);
    let b: Option<&i32> = v.get(88);
    match b {
        Some(x) => println!("b is {}", x),
        None => println!("b is none"),
    }
    //
    v.push(7);
    v.remove(1);
    println!("v is {:?}", v);
}

#[derive(Debug)]
enum SpreadsheetCell {
    Int(i8),
    Float(f64),
    Text(String),
}

#[test]
fn t_enum() {
    let row = vec![
        SpreadsheetCell::Int(3),
        SpreadsheetCell::Float(10.12),
        SpreadsheetCell::Text(String::from("blue")),
    ];
    assert_eq!(2, 3);
    println!("row is {:?}", row);
}

#[cfg(test)]
mod hp {

    #[test]
    fn t_ppp() {
        println!("zzz");
    }
}
